package jfinal.demo.main;

import com.jfinal.core.Controller;
import jfinal.demo.common.model.User;
import jfinal.demo.login.UserService;

public class MainController extends Controller {

    static UserService userService = new UserService();

    public void index(){
        String userid = getCookie("userid");
         User  user = userService.getUserById(userid);
         setAttr("user",userService.getUserById(userid));
    }

}
